import request from "/@/utils/request";

/**
 * 用户注册
 * @param params 要传的参数值
 * @returns 返回接口数据
 * @method teacherRegister 教师注册
 * @method studentRegister 学生注册
 * @method administratorRegister 管理员注册
 * @method lessonInfo 获取班级信息
 */

 export function teacherRegister(params: any) {
    return request({
      url: "teacher/add",
      method: "post",
      data: params,
    });
  }

  export function studentRegister(params: any) {
    return request({
      url: "student/add",
      method: "post",
      data: params,
    });
  }

  export function administratorRegister(params: any) {
    return request({
      url: "admin/add",
      method: "post",
      data: params,
    });
  }

 export function lessonInfo() {
    return request({
      url: "lesson?Size=100",
      method: "get",
    });
  }